<?php
Yii::app()->clientScript->registerCoreScript('jquery.ui');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/app/paymentCenter.js', CClientScript::POS_END);
//Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/app/json2.js',  CClientScript::POS_HEAD);
?>
<div id="left-col">
    <div class="inside">
        <div class="container" style="min-height: 206px;">   
    <div class="heading">
        <a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16" height="16" src="./images/gear.png" alt="" /></a>
        Information
        
    </div>
            <br/>
            <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>
            
            <li><?php echo CHtml::link('Back to List',array('payment/paymentCenter')); ?></li>
            
        </ul>
    </div>
    <br/>
    
</div>

    </div>
</div>
<div id="right-col">

    <div class="wrap">
        <div class="container">
            <div class="inside">

                <h1>
                    Payment Details
                </h1>
             
                <div class="form">
                    <?php $form=$this->beginWidget('CActiveForm',array());?>
                
                    <div class="row">
                        <label>Customer</label>
                        <div class="model-data">
                        <?php echo CHtml::link(Customers::getCustomerName($model->custno),array('customers/update','id'=>$model->custno));?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Location</label>
                        <div class="model-data">
                        <?php 
                            if($model->custno!=null && $model->locno!=null){
                                echo CHtml::link(Locations::getText($model->custno,$model->locno)
                                        ,array('locations/update','custno'=>$model->custno,'locno'=>$model->locno));
                            }
                        ?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Amount</label>
                        <div class="model-data">
                        <?php echo $model->amount; ?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Check No</label>
                        <div class="model-data">
                        <?php echo $model->ckno; ?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Type</label>
                        <div class="model-data">
                        <?php echo $model->getPaymentTypeText();?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Date</label>
                        <div class="model-data">
                        <?php echo $model->entrydate; ?>
                        </div>
                    </div>
                    <div class="row">
                        
                        <label>Payment Method</label>
                        <div class="model-data">
                        <?php echo PaymentMethods::getDesc($model->paymethod); ?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Applied</label>
                        <div class="model-data">
                        <?php echo $model->applied; ?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Remain Credit</label>
                        <div class="model-data">
                        <?php echo $model->remaincredit; ?>
                        </div>
                    </div>
                    <div class="row">
                        <label>Memo</label>
                        <div class="model-data">
                        <?php echo $model->memo; ?>
                        </div>
                    </div>
                    <?php $this->endWidget();?>
                </div>
            </div>
        </div>
    </div>
</div>